package org.meteorshower.controller;

import com.baomidou.mybatisplus.extension.service.IService;
import org.meteorshower.domain.Room;
import org.meteorshower.service.IRoomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@ResponseBody
@RequestMapping("/api/room")
public class RoomController extends BaseController<Room>{

    private final IRoomService roomService;

    @Autowired
    public RoomController(IRoomService roomService) {
        this.roomService = roomService;
    }
    @Override
    public IService<Room> getService() {
        return roomService;
    }
}
